=== COLUMNS FOR TARGET TABLES ===

--- TABLE: back_to_back ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  reference                                     character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: commission ---
  id                                            integer                             NOT NULL
  agent                                         integer                             NOT NULL
  amount                                        numeric                             NOT NULL
  base_amount                                   numeric                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  date                                          date                                NULL
  invoice_line                                  integer                             NULL
  origin                                        character varying                   NULL
  product                                       integer                             NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: commission_agent ---
  id                                            integer                             NOT NULL
  company                                       integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  currency                                      integer                             NOT NULL
  party                                         integer                             NOT NULL
  plan                                          integer                             NULL
  type_                                         character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: commission_plan ---
  id                                            integer                             NOT NULL
  commission_method                             character varying                   NULL
  commission_product                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  name                                          character varying                   NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: commission_plan_line ---
  id                                            integer                             NOT NULL
  category                                      integer                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  formula                                       character varying                   NOT NULL
  plan                                          integer                             NOT NULL
  product                                       integer                             NULL
  sequence                                      integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: currency_currency ---
  id                                            integer                             NOT NULL
  active                                        boolean                             NULL DEFAULT false
  code                                          character varying(3)                NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  digits                                        integer                             NOT NULL
  name                                          character varying                   NOT NULL
  numeric_code                                  character varying(3)                NULL
  rounding                                      numeric                             NOT NULL
  symbol                                        character varying(10)               NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  concatenate                                   boolean                             NULL DEFAULT false

--- TABLE: currency_currency_rate ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  currency                                      integer                             NULL
  date                                          date                                NOT NULL
  rate                                          numeric                             NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: curve_perf ---
  date                                          date                                NULL
  return                                        numeric                             NULL
  price_index                                   integer                             NULL

--- TABLE: derivative_derivative ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  line                                          integer                             NULL
  nb_ct                                         integer                             NULL
  party                                         integer                             NULL
  price                                         numeric                             NULL
  price_index                                   integer                             NULL
  product                                       integer                             NULL
  purchase                                      integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  sale                                          integer                             NULL
  sale_line                                     integer                             NULL
  efp                                           boolean                             NULL DEFAULT false
  exit_price                                    numeric                             NULL
  direction                                     character varying                   NOT NULL
  maturity_date                                 date                                NULL
  open_qty                                      numeric                             NULL
  state                                         character varying                   NOT NULL
  trade_date                                    date                                NULL

--- TABLE: derivative_match ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  long_position                                 integer                             NOT NULL
  match_date                                    date                                NOT NULL
  method                                        character varying                   NOT NULL
  quantity                                      numeric                             NOT NULL
  short_position                                integer                             NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: fee_fee ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  currency                                      integer                             NULL
  inherit_qt                                    boolean                             NULL DEFAULT false
  inherit_shipment                              boolean                             NULL DEFAULT false
  line                                          integer                             NULL
  lots_cp                                       integer                             NULL
  mode                                          character varying                   NOT NULL
  p_r                                           character varying                   NOT NULL
  price                                         numeric                             NULL
  product                                       integer                             NOT NULL
  purchase                                      integer                             NULL
  shipment_in                                   integer                             NULL
  shipment_internal                             integer                             NULL
  state                                         character varying                   NULL
  supplier                                      integer                             NOT NULL
  type                                          character varying                   NOT NULL
  weight_type                                   character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  sale_line                                     integer                             NULL
  shipment_out                                  integer                             NULL
  auto_calculation                              boolean                             NULL DEFAULT false
  qt_state                                      integer                             NULL
  quantity                                      numeric                             NULL
  unit                                          integer                             NULL
  fee_date                                      date                                NULL

--- TABLE: fee_lots ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  fee                                           integer                             NOT NULL
  lot                                           integer                             NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  line                                          integer                             NULL
  sale_line                                     integer                             NULL

--- TABLE: forex_bi ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  input                                         text                                NULL

--- TABLE: forex_category ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  name                                          character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: forex_cover_fees ---
  id                                            integer                             NOT NULL
  amount                                        numeric                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  currency                                      integer                             NULL
  description                                   character varying                   NULL
  forex                                         integer                             NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: forex_cover_physical_contract ---
  id                                            integer                             NOT NULL
  amount                                        numeric                             NULL
  contract                                      integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  forex                                         integer                             NOT NULL
  quantity                                      numeric                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  unit                                          integer                             NULL

--- TABLE: forex_cover_physical_sale ---
  id                                            integer                             NOT NULL
  amount                                        numeric                             NULL
  contract                                      integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  forex                                         integer                             NOT NULL
  quantity                                      numeric                             NULL
  unit                                          integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: forex_cron ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  frequency                                     character varying                   NOT NULL
  last_update                                   date                                NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: forex_forex ---
  id                                            integer                             NOT NULL
  accepts_bls                                   boolean                             NULL DEFAULT false
  bank                                          integer                             NULL
  buy_amount                                    numeric                             NULL
  buy_currency                                  integer                             NOT NULL
  confirmed                                     boolean                             NULL DEFAULT false
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  date                                          date                                NOT NULL
  differential                                  numeric                             NULL
  ex_no_ctr                                     character varying                   NULL
  for_amount                                    numeric                             NULL
  for_currency                                  integer                             NOT NULL
  number                                        character varying                   NOT NULL
  operation_type                                character varying                   NOT NULL
  rate                                          numeric                             NOT NULL
  spot_rate                                     numeric                             NULL
  value_date                                    date                                NULL
  voucher                                       boolean                             NULL DEFAULT false
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  reason                                        integer                             NOT NULL
  remarks                                       text                                NULL
  invoice_line                                  integer                             NULL
  company                                       integer                             NOT NULL
  move                                          integer                             NULL

--- TABLE: lc_letter_incoming ---
  id                                            integer                             NOT NULL
  acceptance_date                               date                                NULL
  advising_bank                                 integer                             NULL
  amount                                        numeric                             NULL
  applicant                                     integer                             NULL
  bank_reference                                character varying                   NULL
  beneficiary                                   integer                             NULL
  company                                       integer                             NULL
  conditions_analysis                           text                                NULL
  confirmation_cost                             numeric                             NULL
  confirming_bank                               integer                             NULL
  confirming_bank_required                      boolean                             NULL DEFAULT false
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  currency                                      integer                             NULL
  expiry_date                                   date                                NULL
  expiry_place                                  character varying                   NULL
  final_destination                             integer                             NULL
  issue_date                                    date                                NULL
  issuing_bank                                  integer                             NULL
  latest_shipment_date                          date                                NULL
  name                                          character varying                   NULL
  our_reference                                 character varying                   NULL
  partial_shipment                              character varying                   NULL
  payment_date                                  date                                NULL
  port_of_discharge                             integer                             NULL
  port_of_loading                               integer                             NULL
  presentation_bank                             integer                             NULL
  presentation_date                             date                                NULL
  presentation_days                             integer                             NULL
  purchase                                      integer                             NULL
  receiving_bank                                integer                             NULL
  refusal_reason                                text                                NULL
  reimbursing_bank                              integer                             NULL
  risk_level                                    character varying                   NULL
  ruleset                                       character varying                   NULL
  sale                                          integer                             NULL
  state                                         character varying                   NULL
  swift_message                                 text                                NULL
  swift_type                                    character varying                   NULL
  tolerance_minus                               numeric                             NULL
  tolerance_plus                                numeric                             NULL
  transhipment                                  character varying                   NULL
  type                                          character varying                   NOT NULL
  version                                       integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  swift_execute                                 boolean                             NULL DEFAULT false
  swift_file                                    integer                             NULL
  swift_text                                    text                                NULL
  incoterm                                      integer                             NULL

--- TABLE: lc_letter_outgoing ---
  id                                            integer                             NOT NULL
  advising_bank                                 integer                             NULL
  amendment_deadline                            date                                NULL
  amount                                        numeric                             NULL
  applicant                                     integer                             NULL
  application_date                              date                                NULL
  bank_instructions                             text                                NULL
  bank_reference                                character varying                   NULL
  beneficiary                                   integer                             NULL
  company                                       integer                             NULL
  confirming_bank                               integer                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  credit_availability                           character varying                   NULL
  currency                                      integer                             NULL
  documents_deadline                            date                                NULL
  expiry_date                                   date                                NULL
  expiry_place                                  character varying                   NULL
  final_destination                             integer                             NULL
  issue_date                                    date                                NULL
  issuing_bank                                  integer                             NULL
  latest_shipment_date                          date                                NULL
  name                                          character varying                   NULL
  our_reference                                 character varying                   NULL
  partial_shipment                              character varying                   NULL
  port_of_discharge                             integer                             NULL
  port_of_loading                               integer                             NULL
  presentation_days                             integer                             NULL
  purchase                                      integer                             NULL
  reimbursing_bank                              integer                             NULL
  ruleset                                       character varying                   NULL
  sale                                          integer                             NULL
  state                                         character varying                   NULL
  swift_message                                 text                                NULL
  swift_type                                    character varying                   NULL
  tolerance_minus                               numeric                             NULL
  tolerance_plus                                numeric                             NULL
  transhipment                                  character varying                   NULL
  type                                          character varying                   NOT NULL
  version                                       integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  swift_execute                                 boolean                             NULL DEFAULT false
  swift_file                                    integer                             NULL
  swift_text                                    text                                NULL
  incoterm                                      integer                             NULL

--- TABLE: lc_mt700 ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  f_20                                          character varying                   NULL
  f_23                                          character varying                   NULL
  f_27                                          character varying                   NULL
  f_31C                                         date                                NULL
  f_31D                                         character varying                   NULL
  f_32B                                         numeric                             NULL
  f_39A                                         character varying                   NULL
  f_39C                                         character varying                   NULL
  f_40A                                         character varying                   NULL
  f_40E                                         character varying                   NULL
  f_41a                                         character varying                   NULL
  f_42C                                         character varying                   NULL
  f_42M                                         character varying                   NULL
  f_42P                                         character varying                   NULL
  f_42a                                         character varying                   NULL
  f_43P                                         character varying                   NULL
  f_43T                                         character varying                   NULL
  f_44A                                         character varying                   NULL
  f_44B                                         character varying                   NULL
  f_44C                                         date                                NULL
  f_44D                                         character varying                   NULL
  f_44E                                         character varying                   NULL
  f_44F                                         character varying                   NULL
  f_45A                                         text                                NULL
  f_46A                                         text                                NULL
  f_47A                                         text                                NULL
  f_48                                          character varying                   NULL
  f_49                                          character varying                   NULL
  f_50                                          character varying                   NULL
  f_51a                                         character varying                   NULL
  f_53a                                         character varying                   NULL
  f_57a                                         character varying                   NULL
  f_59                                          character varying                   NULL
  f_71B                                         text                                NULL
  f_72                                          text                                NULL
  f_78                                          text                                NULL
  name                                          character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  format_lc                                     boolean                             NULL DEFAULT false
  lc                                            text                                NULL

--- TABLE: lot_accounting ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  graph                                         text                                NULL
  lot                                           integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  name                                          character varying                   NULL

--- TABLE: lot_fcr ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  lot_color                                     character varying                   NULL
  lot_counterparty                              integer                             NULL
  lot_create                                    boolean                             NULL DEFAULT false
  lot_final_quantity                            numeric                             NULL
  lot_gpt                                       character varying                   NULL
  lot_grade                                     character varying                   NULL
  lot_linked                                    integer                             NULL
  lot_mic                                       character varying                   NULL
  lot_name                                      character varying                   NULL
  lot_offer                                     character varying                   NULL
  lot_offer_date                                date                                NULL
  lot_origin                                    integer                             NULL
  lot_premium                                   numeric                             NULL
  lot_product                                   integer                             NULL
  lot_qt                                        integer                             NULL
  lot_quantity                                  numeric                             NOT NULL
  lot_staple                                    character varying                   NULL
  lot_tare                                      numeric                             NULL
  lot_uhm                                       character varying                   NULL
  lot_unit                                      integer                             NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  lot_price                                     numeric                             NULL
  lot_amount                                    numeric                             NULL
  lot_gross_quantity                            numeric                             NULL
  lot_unit_line                                 integer                             NOT NULL

--- TABLE: lot_lot ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  line                                          integer                             NULL
  lot_container                                 character varying                   NULL
  lot_himself                                   integer                             NULL
  lot_name                                      character varying                   NULL
  lot_parent                                    integer                             NULL
  lot_premium                                   numeric                             NULL
  lot_premium_sale                              numeric                             NULL
  lot_product                                   integer                             NULL
  lot_status                                    character varying                   NULL
  lot_type                                      character varying                   NULL
  lot_unit                                      integer                             NULL
  sale_line                                     integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  number                                        character varying                   NULL
  lot_qt                                        double precision                    NULL
  move                                          integer                             NULL
  lot_shipment                                  integer                             NULL
  lot_av                                        character varying                   NULL
  lot_state                                     integer                             NULL
  lot_unit_line                                 integer                             NOT NULL
  invoice_line                                  integer                             NULL
  delta_amt                                     numeric                             NULL
  delta_pr                                      numeric                             NULL
  delta_qt                                      numeric                             NULL
  invoice_line_prov                             integer                             NULL
  lot_pur_inv_state                             character varying                   NULL
  lot_sale_inv_state                            character varying                   NULL
  dashboard                                     integer                             NULL
  lot_premium_sup                               numeric                             NULL
  lot_premium_tpl                               numeric                             NULL
  lot_shipment_in                               integer                             NULL
  lot_shipment_internal                         integer                             NULL
  lot_shipment_out                              integer                             NULL
  sale_invoice_line                             integer                             NULL
  sale_invoice_line_prov                        integer                             NULL
  Warrant_nb                                    character varying                   NULL
  warrant_nb                                    character varying                   NULL
  lot_role                                      character varying                   NOT NULL
  lot_chunk_key                                 integer                             NULL

--- TABLE: lot_move ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  lot                                           integer                             NULL
  move                                          integer                             NULL
  sequence                                      integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: lot_qt ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  lot                                           integer                             NULL
  quantity                                      numeric                             NULL
  quantity_type                                 integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  lot_p                                         integer                             NULL
  lot_quantity                                  numeric                             NULL
  lot_s                                         integer                             NULL
  lot_unit                                      integer                             NULL
  lot_av                                        character varying                   NULL
  lot_status                                    character varying                   NULL
  lot_shipment                                  integer                             NULL
  lot_visible                                   boolean                             NULL DEFAULT false
  lot_move                                      integer                             NULL
  lot_shipment_in                               integer                             NULL
  lot_shipment_internal                         integer                             NULL
  lot_shipment_out                              integer                             NULL

--- TABLE: lot_qt_hist ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  lot                                           integer                             NULL
  quantity                                      numeric                             NULL
  quantity_type                                 integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  gross_quantity                                numeric                             NULL

--- TABLE: lot_qt_type ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  name                                          character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  sequence                                      integer                             NULL

--- TABLE: lot_split_merge ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  lot_qt                                        double precision                    NULL
  operation                                     character varying                   NOT NULL
  operation_date                                date                                NOT NULL
  quantity                                      numeric                             NULL
  reversed_by                                   integer                             NULL
  source_lot                                    integer                             NOT NULL
  target_lot                                    integer                             NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: mtm_component ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  fix_type                                      integer                             NULL
  price_index                                   integer                             NULL
  ratio                                         numeric                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  line                                          integer                             NULL
  sale_line                                     integer                             NULL
  component_type                                character varying                   NULL
  currency                                      integer                             NULL
  manual_price                                  numeric                             NULL
  name                                          character varying                   NULL
  price_matrix                                  integer                             NULL
  price_source_type                             character varying                   NULL
  strategy                                      integer                             NULL

--- TABLE: mtm_scenario ---
  id                                            integer                             NOT NULL
  calendar                                      integer                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  name                                          character varying                   NOT NULL
  use_last_price                                boolean                             NULL DEFAULT false
  valuation_date                                date                                NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: mtm_snapshot ---
  id                                            integer                             NOT NULL
  amount                                        numeric                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  created_at                                    timestamp without time zone         NULL
  currency                                      integer                             NULL
  strategy                                      integer                             NOT NULL
  valuation_date                                date                                NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: mtm_strategy ---
  id                                            integer                             NOT NULL
  active                                        boolean                             NULL DEFAULT false
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  currency                                      integer                             NULL
  name                                          character varying                   NOT NULL
  scenario                                      integer                             NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: open_position ---
  id                                            integer                             NOT NULL
  amount                                        numeric                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  currency                                      integer                             NOT NULL
  curve                                         integer                             NULL
  hedged_qty                                    numeric                             NULL
  line                                          integer                             NULL
  mtm                                           numeric                             NULL
  mtm_price                                     numeric                             NULL
  net_exposure                                  numeric                             NULL
  period_end                                    date                                NULL
  period_start                                  date                                NULL
  physical_qty                                  numeric                             NULL
  price                                         numeric                             NULL
  product                                       integer                             NOT NULL
  purchase                                      integer                             NULL
  sensitivity                                   numeric                             NULL
  supplier                                      integer                             NULL
  type                                          character varying                   NULL
  uom                                           integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  sale                                          integer                             NULL
  sale_line                                     integer                             NULL
  client                                        integer                             NULL

--- TABLE: optional_scenario ---
  id                                            integer                             NOT NULL
  activate                                      boolean                             NULL DEFAULT false
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  from_location                                 integer                             NULL
  incoterm                                      integer                             NULL
  line                                          integer                             NULL
  name                                          character varying                   NULL
  premium                                       numeric                             NULL
  to_location                                   integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: party_party ---
  id                                            integer                             NOT NULL
  active                                        boolean                             NULL DEFAULT false
  code                                          character varying                   NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  name                                          character varying                   NULL
  replaced_by                                   integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  association                                   integer                             NULL
  tol_max                                       numeric                             NULL
  tol_min                                       numeric                             NULL
  wb                                            integer                             NULL
  credit_currency                               integer                             NULL
  credit_limit                                  numeric                             NULL
  risk_level                                    character varying                   NULL
  initial                                       character varying                   NULL
  origin                                        character varying                   NULL

--- TABLE: pnl_bi ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  input                                         text                                NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: position_bi ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  input                                         text                                NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: price_area ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  name                                          character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: price_calendar ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  name                                          character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  active                                        boolean                             NULL DEFAULT false

--- TABLE: price_calendar_line ---
  id                                            integer                             NOT NULL
  calendar                                      integer                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  price_date                                    date                                NULL
  price_state                                   character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  active                                        boolean                             NULL DEFAULT false

--- TABLE: price_composite ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  price                                         integer                             NOT NULL
  price_add                                     integer                             NULL
  ratio                                         numeric                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: price_composition ---
  id                                            integer                             NOT NULL
  component                                     character varying                   NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  line                                          integer                             NULL
  price                                         numeric                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  sale_line                                     integer                             NULL

--- TABLE: price_cron ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  frequency                                     character varying                   NOT NULL
  last_update                                   date                                NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: price_fixtype ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  name                                          character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: price_matrix ---
  id                                            integer                             NOT NULL
  calendar                                      integer                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  currency                                      integer                             NULL
  matrix_type                                   character varying                   NOT NULL
  name                                          character varying                   NOT NULL
  unit                                          integer                             NULL
  valid_from                                    date                                NULL
  valid_to                                      date                                NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: price_matrix_line ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  destination                                   integer                             NULL
  matrix                                        integer                             NOT NULL
  origin                                        integer                             NULL
  price_value                                   numeric                             NULL
  product                                       integer                             NULL
  quality                                       integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: price_price ---
  id                                            integer                             NOT NULL
  active                                        boolean                             NULL DEFAULT false
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  price                                         integer                             NULL
  price_area                                    integer                             NULL
  price_calendar                                integer                             NULL
  price_currency                                integer                             NULL
  price_curve_type                              character varying                   NULL
  price_desc                                    character varying                   NOT NULL
  price_index                                   character varying                   NOT NULL
  price_period                                  integer                             NULL
  price_type                                    integer                             NULL
  price_unit                                    integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  price_ct_size                                 numeric                             NULL

--- TABLE: price_price_value ---
  id                                            integer                             NOT NULL
  active                                        boolean                             NULL DEFAULT false
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  high_price                                    double precision                    NULL
  low_price                                     double precision                    NULL
  open_price                                    double precision                    NULL
  price                                         integer                             NOT NULL
  price_date                                    date                                NULL
  price_value                                   double precision                    NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: price_product ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  price                                         integer                             NULL
  product                                       integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: pricing_component ---
  id                                            integer                             NOT NULL
  auto                                          boolean                             NULL DEFAULT false
  calendar                                      integer                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  fallback                                      boolean                             NULL DEFAULT false
  fix_type                                      integer                             NULL
  price_index                                   integer                             NULL
  ratio                                         numeric                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  line                                          integer                             NULL
  sale_line                                     integer                             NULL
  pricing_date                                  date                                NULL
  price_matrix                                  integer                             NULL
  price_source_type                             character varying                   NULL
  strategy                                      integer                             NULL

--- TABLE: pricing_estimated ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  estimated_date                                date                                NULL
  trigger                                       character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  line                                          integer                             NULL
  sale_line                                     integer                             NULL
  purchase                                      integer                             NULL
  shipment_in                                   integer                             NULL
  shipment_internal                             integer                             NULL
  shipment_out                                  integer                             NULL

--- TABLE: pricing_period ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  endday                                        character varying                   NULL
  include                                       boolean                             NULL DEFAULT false
  name                                          character varying                   NULL
  nbde                                          integer                             NULL
  nbds                                          integer                             NULL
  nbme                                          integer                             NULL
  nbms                                          integer                             NULL
  startday                                      character varying                   NULL
  trigger                                       character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  every                                         character varying                   NULL
  nb_quotation                                  integer                             NULL

--- TABLE: pricing_pricing ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  eod_price                                     numeric                             NULL
  fixed_qt                                      numeric                             NULL
  fixed_qt_price                                numeric                             NULL
  last                                          boolean                             NULL DEFAULT false
  price_component                               integer                             NULL
  pricing_date                                  date                                NULL
  quantity                                      numeric                             NULL
  settl_price                                   numeric                             NULL
  unfixed_qt                                    numeric                             NULL
  unfixed_qt_price                              numeric                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  line                                          integer                             NULL
  sale_line                                     integer                             NULL

--- TABLE: pricing_summary ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  fixed_qt                                      numeric                             NULL
  price                                         numeric                             NULL
  price_component                               integer                             NULL
  progress                                      double precision                    NULL
  quantity                                      numeric                             NULL
  ratio                                         numeric                             NULL
  unfixed_qt                                    numeric                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: pricing_trigger ---
  id                                            integer                             NOT NULL
  application_period                            integer                             NULL
  average                                       boolean                             NULL DEFAULT false
  component                                     integer                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  from_a                                        date                                NULL
  from_p                                        date                                NULL
  pricing_period                                integer                             NULL
  to_a                                          date                                NULL
  to_p                                          date                                NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: product_product ---
  id                                            integer                             NOT NULL
  active                                        boolean                             NULL DEFAULT false
  code                                          character varying                   NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  description                                   text                                NULL
  suffix_code                                   character varying                   NULL
  template                                      integer                             NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  attributes                                    jsonb                               NULL

--- TABLE: product_template ---
  id                                            integer                             NOT NULL
  active                                        boolean                             NULL DEFAULT false
  code                                          character varying                   NULL
  consumable                                    boolean                             NULL DEFAULT false
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  default_uom                                   integer                             NOT NULL
  name                                          character varying                   NOT NULL
  type                                          character varying                   NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  account_category                              integer                             NULL
  attribute_set                                 integer                             NULL
  purchasable                                   boolean                             NULL DEFAULT false
  purchase_uom                                  integer                             NULL
  salable                                       boolean                             NULL DEFAULT false
  sale_uom                                      integer                             NULL
  supply_on_sale                                character varying                   NULL
  shipment_cost                                 boolean                             NULL DEFAULT false
  height                                        double precision                    NULL
  height_uom                                    integer                             NULL
  length                                        double precision                    NULL
  length_uom                                    integer                             NULL
  volume                                        double precision                    NULL
  volume_uom                                    integer                             NULL
  weight                                        double precision                    NULL
  weight_uom                                    integer                             NULL
  width                                         double precision                    NULL
  width_uom                                     integer                             NULL
  landed_cost                                   boolean                             NULL DEFAULT false
  web_shop_description                          text                                NULL

--- TABLE: purchase_association ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  name                                          character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  party                                         integer                             NULL
  rule                                          text                                NULL

--- TABLE: purchase_certification ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  name                                          character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: purchase_component ---
  id                                            integer                             NOT NULL
  auto                                          boolean                             NULL DEFAULT false
  calendar                                      integer                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  fix_type                                      integer                             NULL
  line                                          integer                             NULL
  price_index                                   integer                             NULL
  ratio                                         numeric                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  fallback                                      boolean                             NULL DEFAULT false

--- TABLE: purchase_crop ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  name                                          character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: purchase_derivative ---
  id                                            integer                             NOT NULL
  amount                                        numeric                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  currency                                      integer                             NULL
  line                                          integer                             NULL
  nb_ct                                         integer                             NULL
  price                                         numeric                             NULL
  price_index                                   integer                             NULL
  purchase                                      integer                             NULL
  quantity                                      numeric                             NULL
  unit                                          integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  product                                       integer                             NULL
  party                                         integer                             NULL

--- TABLE: purchase_estimated ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  estimated_date                                date                                NULL
  line                                          integer                             NULL
  trigger                                       character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: purchase_fee ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  currency                                      integer                             NULL
  inherit_qt                                    boolean                             NULL DEFAULT false
  inherit_shipment                              boolean                             NULL DEFAULT false
  line                                          integer                             NULL
  mode                                          character varying                   NOT NULL
  price                                         numeric                             NULL
  purchase                                      integer                             NULL
  quantity                                      numeric                             NULL
  shipment_in                                   integer                             NULL
  supplier                                      integer                             NOT NULL
  type                                          character varying                   NOT NULL
  unit                                          integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  product                                       integer                             NOT NULL
  p_r                                           character varying                   NOT NULL
  state                                         character varying                   NULL
  lots_cp                                       integer                             NULL
  weight_type                                   character varying                   NULL
  shipment_internal                             integer                             NULL

--- TABLE: purchase_fee_lots ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  fee                                           integer                             NOT NULL
  lot                                           integer                             NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: purchase_line ---
  id                                            integer                             NOT NULL
  actual_quantity                               double precision                    NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  delivery_date_edit                            boolean                             NULL DEFAULT false
  delivery_date_store                           date                                NULL
  description                                   text                                NULL
  note                                          text                                NULL
  product                                       integer                             NULL
  product_supplier                              integer                             NULL
  quantity                                      double precision                    NULL
  sequence                                      integer                             NULL
  type                                          character varying                   NOT NULL
  unit                                          integer                             NULL
  unit_price                                    numeric                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  image                                         bytea                               NULL
  progress                                      double precision                    NULL
  del_period                                    integer                             NULL
  price_type                                    character varying                   NULL
  fee                                           boolean                             NULL DEFAULT false
  purchase_line                                 integer                             NULL
  budgeted                                      numeric                             NULL
  budgeted_mode                                 character varying                   NULL
  purchase                                      integer                             NULL
  supplier_                                     integer                             NULL
  currency_                                     integer                             NULL
  company                                       integer                             NULL
  certification                                 character varying                   NULL
  inherit_cer                                   boolean                             NULL DEFAULT false
  inherit_tol                                   boolean                             NULL DEFAULT false
  tol_max                                       numeric                             NULL
  tol_min                                       numeric                             NULL
  enable_linked_currency                        boolean                             NULL DEFAULT false
  linked_currency                               integer                             NULL
  linked_price                                  numeric                             NULL
  linked_unit                                   integer                             NULL
  premium                                       numeric                             NULL
  quantity_theorical                            numeric                             NULL
  fee_                                          integer                             NULL
  group_pnl                                     boolean                             NULL DEFAULT false
  created_by_code                               boolean                             NULL DEFAULT false
  certif                                        integer                             NULL
  from_del                                      date                                NULL
  to_del                                        date                                NULL
  concentration                                 numeric                             NULL
  period_at                                     character varying                   NULL
  tol_max_qt                                    numeric                             NULL
  tol_min_qt                                    numeric                             NULL
  attributes                                    jsonb                               NULL
  finished                                      boolean                             NULL DEFAULT false

--- TABLE: purchase_lot ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  line                                          integer                             NULL
  lot_container                                 character varying                   NULL
  lot_gross_quantity                            numeric                             NULL
  lot_himself                                   integer                             NULL
  lot_name                                      character varying                   NULL
  lot_parent                                    integer                             NULL
  lot_premium                                   numeric                             NULL
  lot_premium_sale                              numeric                             NULL
  lot_product                                   integer                             NULL
  lot_qt                                        integer                             NULL
  lot_quantity                                  numeric                             NOT NULL
  lot_shipment                                  integer                             NULL
  lot_status                                    character varying                   NOT NULL
  lot_type                                      character varying                   NOT NULL
  lot_unit                                      integer                             NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  sale_line                                     integer                             NULL

--- TABLE: purchase_lot_qt ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  lot                                           integer                             NULL
  quantity                                      numeric                             NULL
  quantity_type                                 integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: purchase_period ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  endday                                        character varying                   NULL
  include                                       boolean                             NULL DEFAULT false
  name                                          character varying                   NULL
  nbde                                          integer                             NULL
  nbds                                          integer                             NULL
  nbme                                          integer                             NULL
  nbms                                          integer                             NULL
  startday                                      character varying                   NULL
  trigger                                       character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: purchase_pricing ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  eod_price                                     numeric                             NULL
  fixed_qt                                      numeric                             NULL
  fixed_qt_price                                numeric                             NULL
  line                                          integer                             NULL
  price_component                               integer                             NULL
  pricing_date                                  date                                NULL
  quantity                                      numeric                             NULL
  settl_price                                   numeric                             NULL
  unfixed_qt                                    numeric                             NULL
  unfixed_qt_price                              numeric                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  last                                          boolean                             NULL DEFAULT false

--- TABLE: purchase_purchase ---
  id                                            integer                             NOT NULL
  comment                                       text                                NULL
  company                                       integer                             NOT NULL
  confirmed_by                                  integer                             NULL
  contact                                       integer                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  currency                                      integer                             NOT NULL
  delivery_date                                 date                                NULL
  description                                   character varying                   NULL
  invoice_address                               integer                             NULL
  invoice_method                                character varying                   NOT NULL
  invoice_party                                 integer                             NULL
  invoice_state                                 character varying                   NOT NULL
  number                                        character varying                   NULL
  origin                                        character varying                   NULL
  party                                         integer                             NOT NULL
  payment_term                                  integer                             NOT NULL
  purchase_date                                 date                                NOT NULL
  quoted_by                                     integer                             NULL
  reference                                     character varying                   NULL
  shipment_state                                character varying                   NOT NULL
  state                                         character varying                   NOT NULL
  tax_amount_cache                              numeric                             NULL
  total_amount_cache                            numeric                             NULL
  untaxed_amount_cache                          numeric                             NULL
  warehouse                                     integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  incoterm                                      integer                             NULL
  incoterm_location                             integer                             NULL
  from_location                                 integer                             NULL
  to_location                                   integer                             NULL
  shipment_in                                   integer                             NULL
  customer                                      integer                             NULL
  delivery_address                              integer                             NULL
  drop_location                                 integer                             NULL
  broker                                        integer                             NULL
  tol_max                                       numeric                             NOT NULL
  tol_min                                       numeric                             NOT NULL
  weight_basis                                  character varying                   NULL
  certification                                 character varying                   NULL
  line_type                                     character varying                   NULL
  group_pnl                                     boolean                             NULL DEFAULT false
  viewer                                        text                                NULL
  certif                                        integer                             NULL
  association                                   integer                             NULL
  crop                                          integer                             NULL
  wb                                            integer                             NOT NULL
  plan                                          integer                             NULL
  doc_template                                  integer                             NULL
  btb                                           integer                             NULL
  operator                                      integer                             NULL
  our_reference                                 character varying                   NULL
  tol_max_qt                                    numeric                             NULL
  tol_min_qt                                    numeric                             NULL
  trader                                        integer                             NULL
  lc_date                                       date                                NULL
  product_origin                                character varying                   NULL

--- TABLE: purchase_qt_type ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  name                                          character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: purchase_strategy ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  line                                          integer                             NULL
  strategy                                      integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: purchase_trade_payment_term_component ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  fixed_amount                                  numeric                             NULL
  line                                          integer                             NOT NULL
  payment_term                                  integer                             NOT NULL
  percentage                                    numeric                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: purchase_trigger ---
  id                                            integer                             NOT NULL
  application_period                            integer                             NULL
  average                                       boolean                             NULL DEFAULT false
  component                                     integer                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  from_a                                        date                                NULL
  from_p                                        date                                NULL
  pricing_period                                integer                             NULL
  to_a                                          date                                NULL
  to_p                                          date                                NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: purchase_valuation ---
  id                                            integer                             NOT NULL
  amount                                        numeric                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  currency                                      integer                             NULL
  date                                          date                                NULL
  price                                         numeric                             NULL
  purchase                                      integer                             NULL
  quantity                                      numeric                             NULL
  reference                                     character varying                   NULL
  state                                         character varying                   NULL
  type                                          character varying                   NULL
  unit                                          integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  line                                          integer                             NULL
  counterparty                                  integer                             NULL
  product                                       integer                             NULL
  mtm                                           numeric                             NULL
  lot                                           integer                             NULL

--- TABLE: purchase_weight_basis ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  name                                          character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  qt_type                                       integer                             NULL
  description                                   character varying                   NULL

--- TABLE: risk_perf ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  d_down                                        numeric                             NULL
  d_perf                                        numeric                             NULL
  d_up                                          numeric                             NULL
  date                                          date                                NULL
  line                                          integer                             NULL
  price_index                                   integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  d_drop                                        numeric                             NULL
  d_es                                          numeric                             NULL
  d_mean                                        numeric                             NULL
  d_std                                         numeric                             NULL

--- TABLE: risk_position ---
  id                                            integer                             NOT NULL
  basis                                         numeric                             NULL
  cdar                                          numeric                             NULL
  commodity                                     character varying                   NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  ct_type                                       character varying                   NULL
  currency                                      character varying                   NULL
  cvar                                          numeric                             NULL
  future_market                                 character varying                   NULL
  month                                         character varying                   NULL
  origin                                        character varying                   NULL
  price                                         numeric                             NULL
  pricing_type                                  character varying                   NULL
  product                                       character varying                   NULL
  quantity                                      numeric                             NULL
  reference                                     character varying                   NULL
  trader                                        character varying                   NULL
  type                                          character varying                   NULL
  var                                           numeric                             NULL
  whatif                                        numeric                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: risk_position_var ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  d_cdar                                        numeric                             NULL
  d_cvar                                        numeric                             NULL
  d_var                                         numeric                             NULL
  position                                      integer                             NULL
  var                                           integer                             NULL
  whatif                                        numeric                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: risk_var ---
  id                                            integer                             NOT NULL
  confidence                                    numeric                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  from_date                                     date                                NULL
  horizon                                       integer                             NULL
  name                                          character varying                   NULL
  nb_days                                       integer                             NULL
  party                                         integer                             NULL
  product                                       integer                             NULL
  to_date                                       date                                NULL
  type                                          character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  execute                                       boolean                             NULL DEFAULT false
  result                                        text                                NULL
  cdar_gar                                      numeric                             NULL
  cdar_his                                      numeric                             NULL
  cdar_mc                                       numeric                             NULL
  cdar_par                                      numeric                             NULL
  cvar_gar                                      numeric                             NULL
  cvar_his                                      numeric                             NULL
  cvar_mc                                       numeric                             NULL
  cvar_par                                      numeric                             NULL
  market                                        character varying                   NULL
  model                                         character varying                   NULL
  var_gar                                       numeric                             NULL
  var_his                                       numeric                             NULL
  var_mc                                        numeric                             NULL
  var_par                                       numeric                             NULL

--- TABLE: risk_var_line ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  curve                                         integer                             NULL
  dfn                                           numeric                             NULL
  model                                         character varying                   NULL
  var                                           integer                             NULL
  weight                                        numeric                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  nb_days                                       integer                             NULL
  nb_days_past                                  integer                             NULL
  simul_date                                    date                                NULL
  mean                                          numeric                             NULL
  std                                           numeric                             NULL
  fit_text                                      text                                NULL
  fit                                           boolean                             NULL DEFAULT false
  gen_simul_comput                              boolean                             NULL DEFAULT false
  gen_simul_past                                boolean                             NULL DEFAULT false
  simul_comput                                  character varying                   NULL
  simul_past                                    character varying                   NULL
  future_market                                 character varying                   NULL
  link                                          boolean                             NULL DEFAULT false
  month                                         character varying                   NULL
  simul_return                                  numeric                             NULL
  simul_return_past                             numeric                             NULL
  whatif                                        numeric                             NULL

--- TABLE: risk_var_values ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  party                                         integer                             NULL
  product                                       integer                             NULL
  r_cdar                                        numeric                             NULL
  r_es                                          numeric                             NULL
  r_var                                         numeric                             NULL
  var                                           integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: sale_derivative ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  nb_ct                                         integer                             NULL
  party                                         integer                             NULL
  price                                         numeric                             NULL
  price_index                                   integer                             NULL
  product                                       integer                             NULL
  sale                                          integer                             NULL
  sale_line                                     integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: sale_fee ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  currency                                      integer                             NULL
  inherit_qt                                    boolean                             NULL DEFAULT false
  inherit_shipment                              boolean                             NULL DEFAULT false
  mode                                          character varying                   NOT NULL
  p_r                                           character varying                   NOT NULL
  price                                         numeric                             NULL
  product                                       integer                             NOT NULL
  quantity                                      numeric                             NULL
  sale                                          integer                             NULL
  sale_line                                     integer                             NULL
  shipment_in                                   integer                             NULL
  supplier                                      integer                             NOT NULL
  type                                          character varying                   NOT NULL
  unit                                          integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  shipment_out                                  integer                             NULL

--- TABLE: sale_invoice_line ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  invoice_address                               integer                             NULL
  invoice_party                                 integer                             NULL
  sale_line                                     integer                             NULL
  shipment_address                              integer                             NULL
  shipment_party                                integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: sale_line ---
  id                                            integer                             NOT NULL
  actual_quantity                               double precision                    NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  description                                   text                                NULL
  note                                          text                                NULL
  product                                       integer                             NULL
  quantity                                      double precision                    NULL
  sale                                          integer                             NOT NULL
  sequence                                      integer                             NULL
  type                                          character varying                   NOT NULL
  unit                                          integer                             NULL
  unit_price                                    numeric                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  del_period                                    integer                             NULL
  purchase_request                              integer                             NULL
  shipment_cost                                 numeric                             NULL
  quantity_theorical                            numeric                             NULL
  premium                                       numeric                             NULL
  created_by_code                               boolean                             NULL DEFAULT false
  price_type                                    character varying                   NULL
  certification                                 character varying                   NULL
  enable_linked_currency                        boolean                             NULL DEFAULT false
  fee_                                          integer                             NULL
  inherit_cer                                   boolean                             NULL DEFAULT false
  inherit_tol                                   boolean                             NULL DEFAULT false
  linked_currency                               integer                             NULL
  linked_price                                  numeric                             NULL
  linked_unit                                   integer                             NULL
  tol_max                                       numeric                             NULL
  tol_min                                       numeric                             NULL
  principal                                     integer                             NULL
  certif                                        integer                             NULL
  from_del                                      date                                NULL
  to_del                                        date                                NULL
  concentration                                 numeric                             NULL
  period_at                                     character varying                   NULL
  tol_max_qt                                    numeric                             NULL
  tol_min_qt                                    numeric                             NULL
  attributes                                    jsonb                               NULL
  pricing_rule                                  text                                NULL
  finished                                      boolean                             NULL DEFAULT false

--- TABLE: sale_opportunity ---
  id                                            integer                             NOT NULL
  address                                       integer                             NULL
  amount                                        numeric                             NULL
  comment                                       text                                NULL
  company                                       integer                             NOT NULL
  contact                                       integer                             NULL
  conversion_probability                        double precision                    NOT NULL
  converted_by                                  integer                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  currency                                      integer                             NOT NULL
  description                                   character varying                   NULL
  employee                                      integer                             NULL
  end_date                                      date                                NULL
  lost_reason                                   text                                NULL
  number                                        character varying                   NOT NULL
  party                                         integer                             NULL
  payment_term                                  integer                             NULL
  reference                                     character varying                   NULL
  start_date                                    date                                NOT NULL
  state                                         character varying                   NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  incoterm                                      integer                             NULL
  incoterm_location                             integer                             NULL

--- TABLE: sale_opportunity_line ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  description                                   text                                NULL
  note                                          text                                NULL
  opportunity                                   integer                             NOT NULL
  product                                       integer                             NULL
  quantity                                      double precision                    NOT NULL
  sequence                                      integer                             NULL
  unit                                          integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: sale_sale ---
  id                                            integer                             NOT NULL
  comment                                       text                                NULL
  company                                       integer                             NOT NULL
  confirmed_by                                  integer                             NULL
  contact                                       integer                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  currency                                      integer                             NOT NULL
  description                                   character varying                   NULL
  invoice_address                               integer                             NULL
  invoice_method                                character varying                   NOT NULL
  invoice_party                                 integer                             NULL
  invoice_state                                 character varying                   NOT NULL
  number                                        character varying                   NULL
  origin                                        character varying                   NULL
  party                                         integer                             NOT NULL
  payment_term                                  integer                             NOT NULL
  quoted_by                                     integer                             NULL
  reference                                     character varying                   NULL
  sale_date                                     date                                NOT NULL
  shipment_address                              integer                             NULL
  shipment_method                               character varying                   NOT NULL
  shipment_party                                integer                             NULL
  shipment_state                                character varying                   NOT NULL
  shipping_date                                 date                                NULL
  state                                         character varying                   NOT NULL
  tax_amount_cache                              numeric                             NULL
  total_amount_cache                            numeric                             NULL
  untaxed_amount_cache                          numeric                             NULL
  warehouse                                     integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  incoterm                                      integer                             NULL
  incoterm_location                             integer                             NULL
  from_location                                 integer                             NULL
  shipment_out                                  integer                             NULL
  to_location                                   integer                             NOT NULL
  drop_location                                 integer                             NULL
  carrier                                       integer                             NULL
  shipment_cost_method                          character varying                   NULL
  web_id                                        character varying                   NULL
  web_shop                                      integer                             NULL
  broker                                        integer                             NULL
  certification                                 character varying                   NULL
  tol_max                                       numeric                             NOT NULL
  tol_min                                       numeric                             NOT NULL
  weight_basis                                  character varying                   NULL
  agent                                         integer                             NULL
  association                                   integer                             NULL
  certif                                        integer                             NULL
  crop                                          integer                             NULL
  wb                                            integer                             NOT NULL
  doc_template                                  integer                             NULL
  btb                                           integer                             NULL
  operator                                      integer                             NULL
  our_reference                                 character varying                   NULL
  tol_max_qt                                    numeric                             NULL
  tol_min_qt                                    numeric                             NULL
  trader                                        integer                             NULL
  group_pnl                                     boolean                             NULL DEFAULT false
  lc_date                                       date                                NULL
  product_origin                                character varying                   NULL

--- TABLE: sale_strategy ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  sale_line                                     integer                             NULL
  strategy                                      integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: sale_valuation ---
  id                                            integer                             NOT NULL
  amount                                        numeric                             NULL
  counterparty                                  integer                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  currency                                      integer                             NULL
  date                                          date                                NULL
  mtm                                           numeric                             NULL
  price                                         numeric                             NULL
  product                                       integer                             NULL
  quantity                                      numeric                             NULL
  reference                                     character varying                   NULL
  sale                                          integer                             NULL
  sale_line                                     integer                             NULL
  state                                         character varying                   NULL
  type                                          character varying                   NULL
  unit                                          integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: shipment_wr ---
  id                                            integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  shipment_in                                   integer                             NULL
  wr                                            integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: stock_location ---
  id                                            integer                             NOT NULL
  active                                        boolean                             NULL DEFAULT false
  address                                       integer                             NULL
  allow_pickup                                  boolean                             NULL DEFAULT false
  code                                          character varying                   NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  flat_childs                                   boolean                             NULL DEFAULT false
  input_location                                integer                             NULL
  left                                          integer                             NOT NULL
  lost_found_location                           integer                             NULL
  name                                          character varying                   NOT NULL
  output_location                               integer                             NULL
  parent                                        integer                             NULL
  picking_location                              integer                             NULL
  right                                         integer                             NOT NULL
  storage_location                              integer                             NULL
  type                                          character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  supplier_return_location                      integer                             NULL
  lat                                           numeric                             NULL
  lon                                           numeric                             NULL

--- TABLE: stock_move ---
  id                                            integer                             NOT NULL
  company                                       integer                             NOT NULL
  cost_price                                    numeric                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  currency                                      integer                             NULL
  effective_date                                date                                NULL
  from_location                                 integer                             NOT NULL
  internal_quantity                             double precision                    NOT NULL
  origin                                        character varying                   NULL
  origin_planned_date                           date                                NULL
  planned_date                                  date                                NULL
  product                                       integer                             NOT NULL
  product_cost_price                            numeric                             NULL
  quantity                                      double precision                    NOT NULL
  shipment                                      character varying                   NULL
  state                                         character varying                   NULL
  to_location                                   integer                             NOT NULL
  unit                                          integer                             NOT NULL
  unit_price                                    numeric                             NULL
  unit_price_updated                            boolean                             NULL DEFAULT false
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  bldate                                        date                                NULL
  origin_drop                                   integer                             NULL
  shipment_out_cost_price                       numeric                             NULL
  unit_shipment_cost                            numeric                             NULL
  internal_volume                               double precision                    NULL
  internal_weight                               double precision                    NULL
  unit_landed_cost                              numeric                             NULL
  lot                                           integer                             NULL
  in_anglo_saxon_quantity                       double precision                    NOT NULL
  out_anglo_saxon_quantity                      double precision                    NOT NULL
  package                                       integer                             NULL
  commission_price                              numeric                             NULL

--- TABLE: stock_shipment_drop ---
  id                                            integer                             NOT NULL
  company                                       integer                             NOT NULL
  contact_address                               integer                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  customer                                      integer                             NOT NULL
  delivery_address                              integer                             NOT NULL
  effective_date                                date                                NULL
  number                                        character varying                   NULL
  origin_planned_date                           date                                NULL
  planned_date                                  date                                NULL
  reference                                     character varying                   NULL
  state                                         character varying                   NULL
  supplier                                      integer                             NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL

--- TABLE: stock_shipment_in ---
  id                                            integer                             NOT NULL
  company                                       integer                             NOT NULL
  contact_address                               integer                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  done_by                                       integer                             NULL
  effective_date                                date                                NULL
  number                                        character varying                   NULL
  origin_planned_date                           date                                NULL
  planned_date                                  date                                NULL
  received_by                                   integer                             NULL
  reference                                     character varying                   NULL
  state                                         character varying                   NULL
  supplier                                      integer                             NOT NULL
  warehouse                                     integer                             NOT NULL
  warehouse_input                               integer                             NULL
  warehouse_storage                             integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  incoterm                                      integer                             NULL
  incoterm_location                             integer                             NULL
  from_location                                 integer                             NULL
  to_location                                   integer                             NULL
  transport_type                                character varying                   NULL
  vessel                                        integer                             NULL
  booking                                       character varying                   NULL
  eta                                           date                                NULL
  etd                                           date                                NULL
  etl                                           date                                NULL
  note                                          text                                NULL
  unloaded                                      date                                NULL
  ref                                           character varying                   NULL
  carrier                                       integer                             NULL
  cost                                          numeric                             NULL
  cost_currency                                 integer                             NULL
  cost_edit                                     boolean                             NULL DEFAULT false
  dashboard                                     integer                             NULL
  himself                                       integer                             NULL
  del_from                                      date                                NULL
  del_to                                        date                                NULL
  bl_date                                       date                                NULL
  atad                                          date                                NULL
  etad                                          date                                NULL
  bl_number                                     character varying                   NULL
  carrier_                                      integer                             NULL
  booking_date                                  date                                NULL
  started_by                                    integer                             NULL
  start_date                                    date                                NULL
  receive_date                                  date                                NULL
  receive_nb                                    character varying                   NULL
  travel_nb                                     character varying                   NULL
  vessel_type                                   integer                             NULL
  cargo_mode                                    character varying                   NOT NULL
  add_bl                                        boolean                             NULL DEFAULT false
  add_invoice                                   boolean                             NULL DEFAULT false
  controller                                    integer                             NULL
  instructions                                  text                                NULL
  result                                        character varying                   NULL
  returned_id                                   character varying                   NULL
  send_instruction                              boolean                             NULL DEFAULT false
  agent                                         integer                             NULL
  controller_target                             character varying                   NULL
  service_order_key                             integer                             NULL

--- TABLE: stock_shipment_in_return ---
  id                                            integer                             NOT NULL
  assigned_by                                   integer                             NULL
  company                                       integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  delivery_address                              integer                             NULL
  done_by                                       integer                             NULL
  effective_date                                date                                NULL
  from_location                                 integer                             NOT NULL
  number                                        character varying                   NULL
  origin_planned_date                           date                                NULL
  planned_date                                  date                                NULL
  reference                                     character varying                   NULL
  state                                         character varying                   NULL
  supplier                                      integer                             NOT NULL
  to_location                                   integer                             NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  incoterm                                      integer                             NULL
  incoterm_location                             integer                             NULL
  carrier                                       integer                             NULL
  shipping_description                          character varying                   NULL
  shipping_reference                            character varying                   NULL

--- TABLE: stock_shipment_out ---
  id                                            integer                             NOT NULL
  company                                       integer                             NOT NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  customer                                      integer                             NOT NULL
  delivery_address                              integer                             NULL
  done_by                                       integer                             NULL
  effective_date                                date                                NULL
  number                                        character varying                   NULL
  origin_planned_date                           date                                NULL
  packed_by                                     integer                             NULL
  picked_by                                     integer                             NULL
  planned_date                                  date                                NULL
  reference                                     character varying                   NULL
  state                                         character varying                   NULL
  warehouse                                     integer                             NOT NULL
  warehouse_output                              integer                             NOT NULL
  warehouse_storage                             integer                             NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  incoterm                                      integer                             NULL
  incoterm_location                             integer                             NULL
  booking                                       character varying                   NULL
  eta                                           date                                NULL
  etd                                           date                                NULL
  etl                                           date                                NULL
  from_location                                 integer                             NULL
  note                                          text                                NULL
  ref                                           character varying                   NULL
  to_location                                   integer                             NULL
  transport_type                                character varying                   NULL
  unloaded                                      date                                NULL
  vessel                                        integer                             NULL
  carrier                                       integer                             NULL
  cost_sale                                     numeric                             NULL
  cost_sale_currency                            integer                             NULL
  cost_edit                                     boolean                             NULL DEFAULT false
  cost                                          numeric                             NULL
  cost_currency                                 integer                             NULL
  cost_invoice_line                             integer                             NULL
  cost_method                                   character varying                   NULL
  shipping_description                          character varying                   NULL
  shipping_reference                            character varying                   NULL

--- TABLE: stock_shipment_out_return ---
  id                                            integer                             NOT NULL
  company                                       integer                             NOT NULL
  contact_address                               integer                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  customer                                      integer                             NOT NULL
  done_by                                       integer                             NULL
  effective_date                                date                                NULL
  number                                        character varying                   NULL
  origin_planned_date                           date                                NULL
  planned_date                                  date                                NULL
  received_by                                   integer                             NULL
  reference                                     character varying                   NULL
  state                                         character varying                   NULL
  warehouse                                     integer                             NOT NULL
  warehouse_input                               integer                             NOT NULL
  warehouse_storage                             integer                             NOT NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  incoterm                                      integer                             NULL
  incoterm_location                             integer                             NULL
  carrier                                       integer                             NULL
  cost                                          numeric                             NULL
  cost_currency                                 integer                             NULL
  cost_edit                                     boolean                             NULL DEFAULT false

--- TABLE: trade_vessel ---
  id                                            integer                             NOT NULL
  active                                        boolean                             NULL DEFAULT false
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  image                                         bytea                               NULL
  vessel_imo                                    character varying                   NULL
  vessel_name                                   character varying                   NOT NULL
  vessel_premium                                numeric                             NULL
  vessel_year                                   character varying                   NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  vessel_type                                   integer                             NULL

--- TABLE: valuation_valuation ---
  id                                            integer                             NOT NULL
  amount                                        numeric                             NULL
  counterparty                                  integer                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  currency                                      integer                             NULL
  date                                          date                                NULL
  line                                          integer                             NULL
  lot                                           integer                             NULL
  mtm                                           numeric                             NULL
  price                                         numeric                             NULL
  product                                       integer                             NULL
  purchase                                      integer                             NULL
  quantity                                      numeric                             NULL
  reference                                     character varying                   NULL
  state                                         character varying                   NULL
  type                                          character varying                   NULL
  unit                                          integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  sale                                          integer                             NULL
  sale_line                                     integer                             NULL
  base_amount                                   numeric                             NULL
  rate                                          numeric                             NULL
  strategy                                      integer                             NULL

--- TABLE: valuation_valuation_line ---
  id                                            integer                             NOT NULL
  amount                                        numeric                             NULL
  base_amount                                   numeric                             NULL
  counterparty                                  integer                             NULL
  create_date                                   timestamp without time zone         NULL
  create_uid                                    integer                             NULL
  currency                                      integer                             NULL
  date                                          date                                NULL
  line                                          integer                             NULL
  lot                                           integer                             NULL
  mtm                                           numeric                             NULL
  price                                         numeric                             NULL
  product                                       integer                             NULL
  purchase                                      integer                             NULL
  quantity                                      numeric                             NULL
  rate                                          numeric                             NULL
  reference                                     character varying                   NULL
  state                                         character varying                   NULL
  type                                          character varying                   NULL
  unit                                          integer                             NULL
  write_date                                    timestamp without time zone         NULL
  write_uid                                     integer                             NULL
  sale                                          integer                             NULL
  sale_line                                     integer                             NULL
  strategy                                      integer                             NULL